<?php
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of SignInLinkGen
 *
 * @author aneto
 */
class RegisterLinkGen extends LinkGen{

	protected $registerNode = null;

	public function link($id, $additionalParams = array()){
		return LinkGen::getInstance(LinkGen::STRUCTURE)->link($this->registerNode['id'], $additionalParams);
	}

	protected function init(){
		$this->registerNode = Doctrine::getTable('Structure')->findOneByParameterAndLang('register', $this->getAction()->getRoute()->getObject()->getLang());

		if(!$this->registerNode){
			throw new Exception('no register node');
		}
	}

	public function linkParts($id, $additionalParams = array()){

	}
}